####################################################################
## author:    Robert A. Huber
## contact:   robert.huber@ir.gess.ethz.ch
## file name: pc_uk_master.R
## Context:   Populism and Climate Sceptism, individuals from BES
## started:   2016-10-12
## Summary:   runs R-Scripts
######################################################################

## empty memory (!)
rm(list=ls())

######################################################################
## set working directory and define personal folders with libraries

setwd()


### PACKAGES ####

library(foreign)
library(Hmisc)
library(psych)
library(nnet)
library(MASS)
library(effects)
library(stargazer)
# library(reshape2)
library(ggplot2)
library(xtable)
library(stargazer)
library(texreg)
library(readstata13)
library(ggthemes)
library(cowplot)
library(tidyverse)
library(plyr)
library(dplyr)
library(tidyr)

set.seed(123123132)

#################
## run scripts ##
#################
#source("./pc_uk_recode.R", verbose=TRUE)                  ## read data
source("./pc_uk_recode_v2.R", verbose=F)                   ## read data
source("./pc_uk_factoranalysis.R", verbose=F)              ## EFA and average
source("./pc_uk_analysis.R", verbose=F)                    ## Analysis
source("./pc_uk_robustness.R", verbose=F)                  ## Robusness Check
source("./pc_uk_predict.R", verbose = F)                   ## Prediction from min to max
source("./pc_uk_descriptives.R", verbose=F)                ## Descriptives
source("./pc_uk_boot.R", verbose = F)                      ## Bootstrapping
source("./pc_uk_sem.R", verbose = F)                       ## SEM
source("./pc_uk_export.R", verbose=F)                      ## Export

## end of script: master


